From: Steve Frécinaux Date: Thu, 8 Oct 2009 11:14:15 +0000 (+0200) Subject: [AppSwitcher] Fix hiding the arrow on application change. X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~10756 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=8929f43ad9cf718eb5066971ece6f0910abbc0e9;p=gnome-shell.git [AppSwitcher] Fix hiding the arrow on application change. The down arrow is shown when an application with more than one window is selected, but the window list is not always displayed. This patch fixes the fact that the arrow was not hidden when one focus an app with a single window when coming from an app with multiple windows, if the window list was not displayed. https://bugzilla.gnome.org/show_bug.cgi?id=597791 --- diff --git a/js/ui/altTab.js b/js/ui/altTab.js index 90e7562ce..600e1cc33 100644 --- a/js/ui/altTab.js +++ b/js/ui/altTab.js @@ -248,9 +248,11 @@ AltTabPopup.prototype = { }, _select : function(app, window, noTimeout) { - if ((app != this._currentApp || !window) && this._thumbnails) { - this._thumbnails.actor.destroy(); - this._thumbnails = null; + if (app != this._currentApp || !window) { + if (this._thumbnails) { + this._thumbnails.actor.destroy(); + this._thumbnails = null; + } this._appSwitcher.showArrow(-1); }